﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text; 

namespace OF.Utility
{
    public class ESBMessageEntity
    {
        public string Topic { get; set; }

        public string MessageID { get; set; }

        public string MessageData { get; set; }
    }

    public class ESBMessageEntity<T>
    {
        public string Topic { get; set; }

        public string MessageID { get; set; }

        public T MessageData { get; set; }

        public virtual string SerializeMessageData()
        {
            if (MessageData == null) 
                return "";
            return SerializeHelper.JsonSerialize(MessageData);
        }
    }
}
